package com.kevis.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication implements CommandLineRunner
 {

    private final DataMigrationService dataMigrationService;

    @Autowired
    public DemoApplication(DataMigrationService dataMigrationService) {
        this.dataMigrationService = dataMigrationService;
    }


    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
        System.out.println("demo start...");



    }

    @Override
    public void run(String... args) throws Exception {
        //dataMigrationService.migrateData();
        System.out.println("migrateData END...");
    }
}
